package com.woniuxy.service;

import com.woniuxy.model.dto.StartChargingDto;
import com.woniuxy.model.dto.StopChargingDto;
import com.woniuxy.model.entity.ChargingRecords;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
* @author Administrator
* @description 针对表【charging_records】的数据库操作Service
* @createDate 2025-01-02 20:02:38
*/
public interface ChargingRecordsService extends IService<ChargingRecords> {

    // 生成充电订单号
    String generateOrderNumber();

    String startCharging(StartChargingDto chargingDto);


    boolean applyRefund(String orderNumber, BigDecimal refundAmount, String refundDescription);
}
